median of a triangle problems